home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15452 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.cern.ch!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why are &apple and apple, where apple is an array, the same
  5. Date: 19 Apr 96 00:57:54 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.829875474@news.cern.ch>
  8. References: <AD9C7BE9966828AF7@ad49-131.compuserve.com>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=US-ASCII
  12. Content-Transfer-Encoding: 7bit
  13. X-Newsreader: NN version 6.5.0 #18 (NOV)
  14.  
  15. In <AD9C7BE9966828AF7@ad49-131.compuserve.com> 101641.317@compuserve.com (Martin Mamo) writes:
  16.  
  17. >The following C program contains two printf's. They both
  18. >give the same answer, despite the fact one gives the
  19. >value of apple and the other &apple.
  20. >
  21. >I know in C, an array variable is the address of the
  22. >first element. So why do C compilers on both Macs and PCs
  23. >allow you to take an address of an address? Why does
  24. >apple and &apple, where apple is an array variable, give
  25. >the same result.
  26. >
  27. >Please can you reply by e-mail to me as well, as I check
  28. >newsgroups less often than my e-mail. Thanks.
  29.  
  30. A copy of the FAQ has been sent via email, as requested.
  31. No need to rehash this topic in the newsgroup, again.
  32.  
  33. Dan
  34. --
  35. Dan Pop
  36. CERN, CN Division
  37. Email: danpop@mail.cern.ch 
  38. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  39.